package next.CommonProfile;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;

import next.CustomLayout.TitleBar;
import next.CustomLayout.TitleWidget;
import next.Functionality.S_3R4_Activity;
import next.TemplateActivity.R;
import next.control.ApplicationController;


import android.os.Bundle;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.TextView;


public class Dashboard_SU extends S_3R4_Activity {

	//--Attributes--
	private TextView name, realName,pass, repeatPass,email, cellphone, ML, LN, address, phone;
	private ImageView TypeUserSI;
	private Button save;

	
	/***/
	@Override
	 public void onCreate(Bundle savedInstanceState) {
	        super.onCreate(savedInstanceState);
	        setContentView(R.layout.app_dashboard_sign_up_layout);

	        // Initialize title Widget
	        TitleWidget titleWidget = (TitleWidget)findViewById(R.id.normal_activity_CV_TWI1);
	        // Call the methods to change the underlying widgets
	        titleWidget.setTitle("SIGN UP");
	        titleWidget.setIcon(R.drawable.icon);
	        titleWidget.showProgressBar();
	        titleWidget.hideProgressBar();
	        
	        //--Setting Menu.
	        PrepareMenu(ApplicationController.MenuItems,ApplicationController.MenuNameItems, null, null);

	        //--Assembling widgets--
	        name=(TextView) findViewById(R.id.dashboard_sign_upET1);
	        name.setText("avon");
	        realName=(TextView) findViewById(R.id.dashboard_sign_upET2);
	        realName.setText("avon");
	        pass=(TextView) findViewById(R.id.dashboard_sign_upET3);
	        pass.setText("12345");
	        repeatPass=(TextView) findViewById(R.id.dashboard_sign_upET4);
	        repeatPass.setText("12345");
	        email=(TextView) findViewById(R.id.dashboard_sign_upET5);
	        email.setText("avon@avon");
	        cellphone=(TextView) findViewById(R.id.dashboard_sign_upET6);
	        cellphone.setText("15789658");
	        address=(TextView) findViewById(R.id.dashboard_sign_upET7);
	        address.setText("whatever");
	        phone =(TextView) findViewById(R.id.dashboard_sign_upET8);
	        phone.setText("4589762");
	        
	        ML=(TextView) findViewById(R.id.dashboard_sign_upET9);
	        ML.setText("1");
	        LN =(TextView) findViewById(R.id.dashboard_sign_upET0);
	        LN.setText("ltda");
	        
	        EditText ete=(EditText) findViewById(R.id.dashboard_sign_upET1);
	         ete.setOnTouchListener(VoiceListener);
	        EditText ete2=(EditText) findViewById(R.id.dashboard_sign_upET2);
	         ete2.setOnTouchListener(VoiceListener);
	         EditText ete3=(EditText) findViewById(R.id.dashboard_sign_upET3);
	         ete3.setOnTouchListener(VoiceListener);
	        EditText ete4=(EditText) findViewById(R.id.dashboard_sign_upET4);
	         ete4.setOnTouchListener(VoiceListener);
	         EditText ete5=(EditText) findViewById(R.id.dashboard_sign_upET5);
	         ete5.setOnTouchListener(VoiceListener);
	        EditText ete6=(EditText) findViewById(R.id.dashboard_sign_upET6);
	         ete6.setOnTouchListener(VoiceListener);
	         EditText ete7=(EditText) findViewById(R.id.dashboard_sign_upET7);
	         ete7.setOnTouchListener(VoiceListener);
	        EditText ete8=(EditText) findViewById(R.id.dashboard_sign_upET8);
	         ete8.setOnTouchListener(VoiceListener);
	         EditText ete9=(EditText) findViewById(R.id.dashboard_sign_upET9);
	         ete9.setOnTouchListener(VoiceListener);
	        EditText ete10=(EditText) findViewById(R.id.dashboard_sign_upET0);
	         ete10.setOnTouchListener(VoiceListener);
	          
	        
	        TypeUserSI=(ImageView) findViewById(R.id.dashboard_sign_upIG02);
	        if ( ApplicationController.TypeUser.ADMIN== ApplicationController.getCurrentUser())
	        	TypeUserSI.setImageResource(R.drawable.ic_launcher_admin_su);
	        else if ( ApplicationController.TypeUser.CLIENT== ApplicationController.getCurrentUser())
	        	TypeUserSI.setImageResource(R.drawable.ic_launcher_client_su);
	        
	        save = (Button)findViewById(R.id.dashboard_sign_upBTN01);

	 }

}
